<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "../head.html"/>
<script type="text/javascript">
function getTableForm() {
	return document.getElementById('tableForm');
}
function optDelete() {
	if(Pn.checkedCount('ids')<=0) {
		alert("请选择您要操作的数据");
		return;
	}
	if(!confirm("您确定删除吗？")) {
		return;
	}
	var f = getTableForm();
	f.action="o_delete.do";
	f.submit();
}
function optPriority() {
	var f = getTableForm();
	f.action="o_priority.do";
	f.submit();
}
</script>
</head>
<body>
<div class="box-positon">
	<div class="rpos">当前位置: 会员组管理 - 列表</div>
	<form class="ropt">
		<input class="add" type="submit" value="添加" onclick="this.form.action='v_add.do';"/>
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<form id="tableForm" method="post">
<input type="hidden" name="pageNo" value=""/>
<table class="pn-ltable" style="" width="100%" cellspacing="1" cellpadding="0" border="0">
<thead class="pn-lthead"><tr>
	<th width="20"><input type='checkbox' onclick='Pn.checkbox("ids",this.checked)'/></th>
	<th>ID</th>
	<th>名称</th>
	<th>每日附件总尺寸</th>
	<th>最大附件尺寸</th>
	<th>排列顺序</th>
	<th>默认组</th>
	<th>评论需要审核</th>
	<th>评论需要验证码</th>
	<th>操作选项</th></tr>
</thead>
<tbody  class="pn-ltbody">
<#list list as cmsGroup>
<tr onmouseover="this.bgColor='#eeeeee'" onmouseout="this.bgColor='#ffffff'">
<td><input type='checkbox' name='ids' value='${cmsGroup.id}'/></td>
	<td>${cmsGroup.id}</td>
	<td>${cmsGroup.name}</td>
	<td align="right">${cmsGroup.allowPerDay}KB</td>
	<td align="right">${cmsGroup.allowMaxFile}KB</td>
	<td align="center">		<input type="text" name="priority" value="${cmsGroup.priority!}" style="width:40px"/>
		<input type="hidden" name="wids" value="${cmsGroup.id}"/>
</td>
	<td align="center">		<input type="radio" name="regDefId" value="${cmsGroup.id}"<#if cmsGroup.regDef> checked="checked"</#if>/>
</td>
	<td align="center"><#if cmsGroup.needCheck>是<#else>否</#if></td>
	<td align="center"><#if cmsGroup.needCaptcha>是<#else>否</#if></td>
	<td align="center"><a href="v_edit.do?id=${cmsGroup.id}&pageNo=${pageNo!}" class="pn-opt">修改</a> | <a href="o_delete.do?ids=${cmsGroup.id}&pageNo=${pageNo!}" onclick="if(!confirm('您确定删除吗？')) {return false;}" class="pn-opt">删除</a></td>
</tr>
</#list>
</tbody>
</table>
<div style="margin-top:15px;">
	<input class="del-button" type="button" value="删除" onclick="optDelete();"/>
&nbsp; <input class="save-order" type="button" value="保存排列顺序" onclick="optPriority();"/>
</div>
</form>
</div>
</body>
</html>